home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / OptionsGeneralIpbindingsPage.cpp < prev    next >
C/C++ Source or Header  |  2011-11-06  |  2KB  |  56 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. #include "stdafx.h"
  20. #include "filezilla server.h"
  21. #include "OptionsDlg.h"
  22. #include "OptionsPage.h"
  23. #include "OptionsGeneralIpbindingsPage.h"
  24.  
  25. COptionsGeneralIpbindingsPage::COptionsGeneralIpbindingsPage(COptionsDlg *pOptionsDlg, CWnd* pParent /*=NULL*/)
  26.     : COptionsPage(pOptionsDlg, COptionsGeneralIpbindingsPage::IDD, pParent)
  27. {
  28. }
  29.  
  30. COptionsGeneralIpbindingsPage::~COptionsGeneralIpbindingsPage()
  31. {
  32. }
  33.  
  34. void COptionsGeneralIpbindingsPage::DoDataExchange(CDataExchange* pDX)
  35. {
  36.     COptionsPage::DoDataExchange(pDX);
  37.     DDX_Text(pDX, IDC_OPTIONS_GENERAL_IPBINDUNGS_IPBINDINGS, m_bindings);
  38. }
  39.  
  40. BEGIN_MESSAGE_MAP(COptionsGeneralIpbindingsPage, COptionsPage)
  41. END_MESSAGE_MAP()
  42.  
  43. BOOL COptionsGeneralIpbindingsPage::IsDataValid()
  44. {
  45.     return true;
  46. }
  47. void COptionsGeneralIpbindingsPage::SaveData()
  48. {
  49.     m_pOptionsDlg->SetOption(OPTION_IPBINDINGS, m_bindings);
  50. }
  51.  
  52. void COptionsGeneralIpbindingsPage::LoadData()
  53. {
  54.     m_bindings = m_pOptionsDlg->GetOption(OPTION_IPBINDINGS);
  55. }
  56.